package com.xiaoma.lock.condition.usecase;

import java.util.concurrent.locks.Condition;
import java.util.concurrent.locks.ReentrantLock;

public class App {

  public static void main(String[] args) throws InterruptedException {
    ReentrantLock lock=new ReentrantLock();
    Condition condition = lock.newCondition();
    new Thread(new ConditionWait(lock,condition)).start();
    new Thread(new ConditionNotify(lock,condition)).start();
  }
}
